// 可复用的样式
.sub-text {
  color: #999;
  font-size: 12px;
}

// 多行文本溢出隐藏
.text-overflow {
  width: 100%;
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-all;
  line-break: anywhere;
}

// 布局
.layout {
  display: flex;
  flex-direction: column;

  main {
    flex: 1;
    overflow: auto;
  }
}
.avatar(@radius) {
  height: @radius * 2;
  width: @radius * 2;
  border-radius: 50%;
  overflow: hidden;
  img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
